package Self_Practice.PROJECT_2;

public class Main {
    public static void main(String[] args) {
        Animal animal1 = (Dog)new Dog("Micky",5);
        System.out.println(animal1);
        animal1.eat();
        Animal animal2 = (Cat)new Cat("Tom",3);
        System.out.println(animal2);
        animal2.eat();
    }
}
